/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package MyPackage;

/**
 *
 * @author worawitp
 */
public class Condition {

    public static final int CHECK_DEVICE_ON_OFF = 1;
    public static final int CHECK_TOTAL_WATT_USAGE = 2;
    // 1 = check device is on/off
    // 2 = check total watt usage
    public int type;

    public static final int AND = 1;
    public static final int OR = 2;
    // 1 = and
    // 2 = or
    public int and_or_op;
    
    public static final int ON = 1;
    public static final int OFF = 0;
    // 0 = off
    // 1 = on
    public int check_on_off;
    public int device_id;

    public String device_name;

    // watt compare
    public int number_to_compare;
    
    public String compare_op;

    // -------- not used ------
    // 1 = on, 0 = off
    public int command;

    public boolean result;
}
